<include file="Public:header" />
<load href="__JS__/upload/uploadify.css" />
<load href="__JS__/swfobject.js" />
<script type="text/javascript" src="__JS__/jquery.uploadify.v2.1.4.min.js"></script> 
<script type="text/javascript" src="__JS__/jianfanzhuanhuan.js"></script>
<div class="content">
<!-----------------------------------------内容开始--------------------------------------------------->
<div class="infoBox">
<form name="form" action="{:U('doimgs_fenlei')}" method="post" onsubmit="return checkform();">
<input type="hidden" name="id" value="{$id}" />


<table width="100%" border="0" cellpadding="0" cellspacing="0" id="basic">
<tr>
<td width="11%" class="infoBoxTd">名称：</td>
<td colspan="2"><input type="text" name="name" value="{$name}" style="float:left;margin-right:10px;" /> <a href="javascript:;" onclick="zhuanjft(this)" class="buttom"  >自动转换简繁体</a>
</td>
</tr>

<volist name="lang" id="lang">
<tr>
<td width="11%" class="infoBoxTd">名称（<span class="lang_name" lang_daihao="{$lang.nid}">{$lang.name}</span>）：</td>
<td colspan="2">
<input type="text" name="name{$lang.id}" value="{$lang.imgs_fenlei_name}" style="float:left;margin-right:10px;" />
<eq name="lang.nid" value="L01"> <a href="javascript:;" onclick="zhuanft(this)" class="buttom"  >将简体转换为繁体</a></eq>
</td>
</tr>
</volist>

<tr>
<td width="11%" class="infoBoxTd">所属分类：</td>
<td colspan="2">
<select name="mid">
<option value="0">顶级分类</option>
<volist name="topimgs_fenlei" id="topimgs_fenlei">
<option value="{$topimgs_fenlei.id}" <eq name="topimgs_fenlei.id" value="$mid">selected</eq>>{$topimgs_fenlei.name}</option>
</volist>
</select>
</td>
</tr>

<tr>
	<td width="11%" class="infoBoxTd">所属网站：</td>
	<td colspan="2">
		<select name="webid">
			<volist name="webs" id="webs">
			<option value="{$webs.id}" <eq name="webs.id" value="$webid">selected</eq>>{$webs.name}</option>
			</volist>
		</select>
	</td>
</tr>


<tr>
<td width="11%" class="infoBoxTd">排序：</td>
<td colspan="2"><input type="text" name="xu" value="{$xu}" style="float:left;margin-right:10px;" /> <a href="javascript:;" onclick="zhuanjft(this)" class="buttom"  >自动转换简繁体</a>
</td>
</tr>

<volist name="lang_xu" id="lang">
<tr>
<td width="11%" class="infoBoxTd">排序（<span class="lang_name" lang_daihao="{$lang.nid}">{$lang.name}</span>）：</td>
<td colspan="2">
<input type="text" name="xu{$lang.id}" value="{$lang.imgs_fenlei_xu}" style="float:left;margin-right:10px;" />
<eq name="lang.nid" value="L01"> <a href="javascript:;" onclick="zhuanft(this)" class="buttom"  >将简体转换为繁体</a></eq>
</td>
</tr>
</volist>


</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="infoBoxTd">&nbsp;</td>
<td align="left"><input type="submit" name="Button1" value="保存" class="formInput01" /></td>
</tr>
</table>
</form>
</div>
<!-----------------------------------------内容结束--------------------------------------------------->
</div>
<script language="javascript">

//表单验证
function checkform(){
	var b = $('input[name="name"]').val();
	if(b == ''){
		ui.error('请输入名称');
		return false;
	}

}

</script>
    

<include file="Public:footer" />
